@extends('admin.p_login')
@section('title',$title)
@section('content')    
    <div class="login-box-body" style="margin-top:150px;">
        <p class="login-box-msg">欢迎登录后台管理</p>

        <form action="/admin/login/dologin" method="post">

        {{csrf_field()}}
            <div class="form-group has-feedback">
                <input type="text" class="form-control" name="username" placeholder="请输入用户名">
                <span class="glyphicon glyphicon-user form-control-feedback"></span>
            </div>
            <div class="form-group has-feedback">
                <input type="password" class="form-control" name="password" placeholder="请输入密码">
                <span class="glyphicon glyphicon-lock form-control-feedback"></span>
            </div>
            <div class="row">
                <div class="col-xs-8">
            <!--         <div class="checkbox icheck">
                        <label>
                            <input type="checkbox"> Remember Me
                        </label>
                    </div> -->
                </div><!-- /.col -->
                <div class="col-xs-6">
                    <button type="reset" class="btn btn-primary btn-block btn-flat">重置</button>
                </div><!-- /.col -->
                <div class="col-xs-6">
                    <button type="submit" class="btn btn-primary btn-block btn-flat">登录</button>
                </div><!-- /.col -->
            </div>
        </form>

            @if(session('error'))
                {{session('error')}}
            @endif

            @if (count($errors) > 0)
                    <ul>
                        @foreach ($errors->all() as $error)
                            <li>{{ $error }}</li>
                        @endforeach
                    </ul>           
            @endif

    <!--     <div class="social-auth-links text-center">
            <p>- OR -</p>
            <a href="#" class="btn btn-block btn-social btn-facebook btn-flat"><i class="fa fa-facebook"></i> Sign in
                using Facebook</a>
            <a href="#" class="btn btn-block btn-social btn-google btn-flat"><i class="fa fa-google-plus"></i> Sign in
                using Google+</a>
        </div> --><!-- /.social-auth-links -->
		<br>
        <a href="/" style="float:left;">返回首页</a><br>
    </div><!-- /.login-box-body -->
@endsection
    
